package cn.com.api.mapper.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.*;

import cn.com.api.entity.ApiT_goods_tags_link;

//DAO
public interface T_goods_tags_linkMapperBase {

	// 根据id查看
	@Select("SELECT * FROM t_goods_tags_link  WHERE id = #{id}")
	public ApiT_goods_tags_link findT_goods_tags_linkById(Integer id);

	// 查看数据集
	@Select("SELECT * FROM T_goods_tags_link")
	public List<ApiT_goods_tags_link> findT_goods_tags_links();

	// 添加
	@Insert("INSERT INTO t_goods_tags_link (gtag_id, goods_id) VALUES (#{gtag_id}, #{goods_id})")
	@Options(useGeneratedKeys = true, keyProperty = "id")
	public int insertT_goods_tags_link(ApiT_goods_tags_link t_goods_tags_link);

	// 修改
	@Update("UPDATE t_goods_tags_link SET gtag_id = #{gtag_id}, goods_id = #{goods_id} WHERE id = #{id}")
	public int updateT_goods_tags_link(ApiT_goods_tags_link t_goods_tags_link);

	// 删除
	@Delete("DELETE FROM t_goods_tags_link  WHERE id = #{id}")
	public int deleteT_goods_tags_link(Integer id);

	// Foreign keys revelant

	// region Indexs revelant

}
